import request from '@/utils/request'

export default {
    // GET /admin/product/attrInfoList/{category1Id}/{category2Id}/{category3Id}
    // 获取数据列表信息
    getAttrInfoList({ category1Id, category2Id, category3Id }) {
        return request.get(`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`)
    },

    /* 删除 */
    // DELETE /admin/product/deleteAttr/{attrId}
    deleteAttr(attrId) {
        return request.delete(`/admin/product/deleteAttr/${attrId}`)
    },

    /* 添加的ajax */
    // POST /admin/product/saveAttrInfo
    saveAttrInfo(attrInfo) {
        return request.post('/admin/product/saveAttrInfo', attrInfo)
    }
}